import request from '@/utils/request'

// 查询酒店房间类型列表
export function listRoomType(query) {
  return request({
    url: '/shop/roomType/list',
    method: 'get',
    params: query
  })
}

// 查询酒店房间类型详细
export function getRoomType(id) {
  return request({
    url: '/shop/roomType/' + id,
    method: 'get'
  })
}

// 新增酒店房间类型
export function addRoomType(data) {
  return request({
    url: '/shop/roomType',
    method: 'post',
    data: data
  })
}

// 修改酒店房间类型
export function updateRoomType(data) {
  return request({
    url: '/shop/roomType',
    method: 'put',
    data: data
  })
}

// 删除酒店房间类型
export function delRoomType(id) {
  return request({
    url: '/shop/roomType/' + id,
    method: 'delete'
  })
}
